package 期末测试;

import java.util.Scanner;

public class Person05 {
    private int age;
        public void setAge(int age) {
            if (age >= 0) {
                this.age = age;
            } else {
                System.out.println("年龄不合法");
            }
        }
    }


